package designMode.buildMode.prototype;

import designMode.buildMode.prototype.entity.SerializableObject;

/**
 * Created by Administrator on 2018/4/10.
 */
public class PrototypeTest {

    public static void main(String[] args) throws Exception {
        SerializableObject object = new SerializableObject();
        object.setName("wang wu");

        ComplexPrototype complexPrototype = new ComplexPrototype();
        complexPrototype.setString("string");
        complexPrototype.setObj(object);
        System.out.println(complexPrototype);
        Object clone = complexPrototype.clone();
        System.out.println(clone);
    }
}
